import request from '../utils/request.js';

export default {

  // 获取机构下面的栏目树
  GetCatgTree: params => request('/wgw/v3/CatgWeb/GetCatgTree', { method: 'GET', params }),

  // 分页获取栏目
  GetCatgPage: params => request('/wgw/v3/CatgWeb/GetCatgPage', { method: 'GET', params }),

  // 获取单个信息
  GetCatg: params => request('/wgw/v3/CatgWeb/GetCatg', { method: 'GET', params }),

  // 保存
  SaveCatg: params => request('/wgw/v3/CatgWeb/SaveCatg', { method: 'POST', body: { ...params } }),

  // 删除
  DeleteCatg: params => request('/wgw/v3/CatgWeb/DeleteCatg', { method: 'POST', params }),

  // 获取栏目状态
  GetCatgStatusList: params => request('/wgw/v3/CatgWeb/GetCatgStatusList', { method: 'GET', params }),

  // 获取版式下面的所有栏目选择列表
  GetCatgSelectList: (params) => request('/wgw/v3/CatgWeb/GetCatgSelectList', { method: 'GET', params }),
};

